package org.pupil.socket;

import java.io.Serializable;

/**
 * @Description: 对象类
 * @Author: pupil
 * @Date: 2024/07/06 下午 4:15
 */
public class MyObject implements Serializable {
    private static final long serialVersionUID = 1L; //用于确保序列化和反序列化过程中类的一致性
    private String field1;
    private String field2;

    public MyObject(String field1, String field2) {
        this.field1 = field1;
        this.field2 = field2;
    }

    @Override
    public String toString() {
        return "MyObject{" +
                "field1='" + field1 + '\'' +
                ", field2='" + field2 + '\'' +
                '}';
    }
}
